﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuestionTestStaticsReport.aspx.cs" Inherits="E.Web.Teacher.report.exam.QuestionTestStaticsReport" %>

<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>考试列表</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/student.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript">
      //      $(document).ready(
      //      function () {
      //          $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      //          $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      //      }
      //    );

      function download() {
          document.forms[0].action = "?act=d";
          document.forms[0].submit();
      }
  </script>
    <style type="text/css">
        .style1
        {
            height: 20px;
            width: 135px;
        }
        .style2
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 144px;
        }
        .style3
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 156px;
        }
        .style4
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 83px;
        }
        .style5
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 120px;
        }
    </style>
</head>
<body>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;考试列表</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">报名机构：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
              <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
        <div class="fl" style="line-height:23px;">&nbsp;项目及课程：</div>
        <div class="fl">          
          <% if (certificateList != null && certificateList.Count > 0) { %>
          <select id="CertificateSlt" name="CertificateSlt" onchange="GetEmptySettingTemplate2(1);">
            <% if (authority != E.Enum.EnumTeacherAuthority.Internals) { %>
            <option value="-1">请选择</option>
            <% } %>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in certificateList) { %>
            <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <select id="CourseSlt" name="CourseSlt">
            <option value="-1">请选择课程</option>
          </select>
          <% } %>
          
        </div>
        
      </div>
      <div style="height: 25px">
        <div class="fl">
            <input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" />
            <input type="image" style="width:54px; height:23px;" src="/images/btn/export.gif" onclick="download();" />
        </div>
      </div>
    </div>
    
    <div style="margin:10px 0 0 30px; width:789px; display:table;height: 130px;">
      <div style="width:781px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div style="width:776px; height:5px; overflow:hidden; background-image:url('../../images/bg/title_spe_line_2.gif');"></div>
      
    <% if (staticsList != null && staticsList.Count > 0)
       { %>
    
      <div style=" width:786px; display:table;height: 112px;">
        <table>
            <tr>
                <td style="border:solid 1px #9C9A9C;background-color:#EFEFEF;text-align:center;font-size:10pt;vertical-align:middle;" 
                    rowspan="2" class="style1">题号</td>
                <td class="style2" rowspan="2">题型</td>
                <td class="style3" colspan="3">内容</td>
                <td class="style4" rowspan="2">被考次数</td>
                <td class="style5" rowspan="2">准确率</td>
            </tr>
            <tr>
                <td style="border:solid 1px #9C9A9C;background-color:#EFEFEF;text-align:center;font-size:10pt;vertical-align:middle;" 
                    class="style1">问题</td>
                <td style="border:solid 1px #9C9A9C;background-color:#EFEFEF;text-align:center;font-size:10pt;vertical-align:middle;" 
                    class="style1">选项</td>
                <td class="style2">正确答案</td>
            </tr>
        
        <% foreach (QuestionStaticsModel model in staticsList)
           { %>
           <tr>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.Id %></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.QuestionType %></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.QuestionTitle %></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.QuestionOption %></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.RightAnswer%></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.QuestionCount %></td>
                 <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.RightPercent %></td>

           </tr>
        <% } %>
        </table>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% } else { %>
    <% } %>
    
    </div>
     <% if (act == "s") { %>
    <script type="text/javascript">
      var page_categoryid = 1;
      var page_certificateid = <%=currentCertificateID %>;
      var page_courseid = <%=courseid %>;
      GetEmptySettingTemplateBase(1,page_certificateid,page_courseid);
      setTimeout(function(){ $("#CertificateSlt").val(page_certificateid); $("#CourseSlt").val(page_courseid); },100);
    </script>
      <% } else { %>
    <script type="text/javascript">
        GetEmptySettingTemplate2(1);
    </script>
      <% } %>
  </form>
  <script type="text/javascript">
  <% if (areaid != -1)
     { %>
     document.getElementById("AreaSlt").value = <%=areaid %>;     
  <% } %>
  <% if (currentCertificateID != -1)
     { %>
     document.getElementById("CertificateSlt").value = <%=currentCertificateID %>;
  <% } %>
  </script>
</body>
</html>
